package com.rbcs;

import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
import java.util.ResourceBundle;
import com.systop.core.util.ResourceBundleUtil;

/**
 * 系统常量类.
 */
public final class RbcsConstants {
	
	/** 资源文件 */
	private static final String BUNDLE_KEY = "application";

	/** 资源绑定对象 */
	private static final ResourceBundle RESOURCE_BUNDLE = ResourceBundle
			.getBundle(BUNDLE_KEY);
	
	public static String BUDGET_TYPE_MON = "month";
	
	public static String BUDGET_TYPE_QTR = "quarter";

	/** 资产 */
	public static String ITEM_TYPE_ZC = "ZC";

	/** 负债 */
	public static String ITEM_TYPE_FZ = "FZ";

	/** 共同 */
	public static String ITEM_TYPE_GT = "GT";

	/** 权益 */
	public static String ITEM_TYPE_QY = "QY";

	/** 成本 */
	public static String ITEM_TYPE_CB = "CB";

	/** 损益 */
	public static String ITEM_TYPE_SY = "SY";

	/**
	 * 权限操作列表
	 */
	public static final Map<String, String> ITEM_TYPE_MAP = Collections
			.synchronizedMap(new HashMap<String, String>());
	static {
		ITEM_TYPE_MAP.put(ITEM_TYPE_ZC, "资产");
		ITEM_TYPE_MAP.put(ITEM_TYPE_FZ, "负债");
		ITEM_TYPE_MAP.put(ITEM_TYPE_GT, "共同");
		ITEM_TYPE_MAP.put(ITEM_TYPE_QY, "权益");
		ITEM_TYPE_MAP.put(ITEM_TYPE_CB, "成本");
		ITEM_TYPE_MAP.put(ITEM_TYPE_SY, "损益");
	}

	/**
	 * 科目名称
	 */
	public static final String ITEM_NAME_TRAVEL = ResourceBundleUtil.getString(
			RESOURCE_BUNDLE, "item.name.travel", "差旅费");

	private RbcsConstants() {
	}

}
